import request from '@/utils/request'

export function initData(url, params) {
  return request({
    url: url,
    method: 'get',
    params
  })
}

// 获取每日统计数据
export function getDayStatistics(params) {
  return request({
    url: 'api/day/statistics/',
    method: 'get',
    params: params
  })
}

// 获取图表统计数据
export function getChartsStatistics(params) {
  return request({
    url: 'api/data/charts/statistics/',
    method: 'get',
    params: params
  })
}
